<?php require_once('../../core/import.php');?>
<?php User::Permission('NEWS_ADD'); ?>
<?php
$Title=Functions::FormArgs('Title');
$Title=trim(trim($Title,"　"));
$Data=DB::GetRows('select id,Title from `news` where Title=\''.$Title.'\'');
if(count($Data)>0){
	echo '<span style="border:1px solid #ff5900;  background:#fff7e7">该新闻已存在，请勿重复发布</span>';
}else
{	
	echo '<span style="border:1px solid #5BBC36;  background:#AFDAA6">OK!</span>';
}
?>